Controller for gas concentration sensor

ABSTRACT

An oxygen sensor is employed for determining whether the exhaust air-fuel ratio is rich or lean. A voltage is applied to the oxygen sensor at device impedance calculation intervals to calculate device impedance. After device impedance calculation, a reverse voltage is applied to the oxygen sensor with a view toward promptly negating the influence of voltage application on the sensor output. Subsequently, the sensor output of the oxygen sensor is sampled at sampling time intervals until it is concluded that the device impedance calculation period is over.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a controller for a gas concentrationsensor, and more particularly to a gas concentration sensor controllerthat is suitable for the control of a gas concentration sensor installedin an internal-combustion engine's exhaust path.

2. Background Art

As disclosed by Japanese Patent JP-A No. 28575/2000, there is aconventionally known device that includes an oxygen sensor installed inan internal-combustion engine's exhaust path. The oxygen sensor for thisdevice generates an output in accordance with the oxygen concentrationin an exhaust gas that flows in the exhaust path. There is a correlationbetween the oxygen concentration in the exhaust gas and the exhaustair-fuel ratio. With the conventional device, it is therefore possibleto obtain the information about the exhaust air-fuel ratio in accordancewith the oxygen sensor output.

The above device is capable of detecting the device impedance of theoxygen sensor by varying the voltage V0, which is applied to the oxygensensor, from a reference voltage to a sweep voltage. If a ΔV0 changeoccurs in the applied voltage V0, the associated current I changes byΔI, which corresponds to the device impedance Rs. Therefore, the aboveconventional device calculates the device impedance Rs in accordancewith the voltage change ΔV0 and current change ΔI, which arise when theapplied voltage V0 changes from the reference voltage to the sweepvoltage.

As described above, the above conventional device acquires theinformation about the exhaust air-fuel ratio in accordance with theoxygen sensor's output, and detects the device impedance by applying thesweep voltage to the oxygen sensor. While the sweep voltage is appliedto the oxygen sensor, the output value of the oxygen sensor is affectedby the sweep voltage. Therefore, while the sweep voltage is applied, theoxygen sensor's output does not correspond to the exhaust air-fuelratio.

The oxygen sensor includes an impedance component and a capacitancecomponent. Therefore, the oxygen sensor's output does not revert to avalue corresponding to the exhaust air-fuel ratio for some time afterthe application of the sweep voltage is stopped. Consequently, the aboveconventional device may erroneously detect the exhaust air-fuel ratioduring the time interval between the instant at which the sweep voltageis applied to the oxygen sensor for device impedance detection purposesand the instant at which the influence of the sweep voltage disappears.

SUMMARY OF THE INVENTION

The present invention has been made to solve the above problems andprovides a controller for a gas concentration sensor, which is capableof detecting the device impedance of the gas concentration sensor andaccurately detecting the information about the exhaust air-fuel ratio.

The above object of the present invention is achieved by a controllerfor a gas concentration sensor that generates an output correlating withthe oxygen concentration in a detected gas. The controller includes animpedance detection unit for applying an impedance detection voltage tothe gas concentration sensor to detect a device impedance of the gasconcentration sensor. The controller also includes a reverse voltageapplication unit for applying the same voltage as generated by the gasconcentration sensor itself or a voltage that shifts from the samevoltage toward an opposite direction against a direction of theimpedance detection voltage to the gas concentration sensor for aspecified period of time after the impedance detection voltage isapplied to the gas concentration sensor.

The above object of the present invention is also achieved by acontroller for a gas concentration sensor that generates an outputcorrelating with the oxygen concentration in a detected gas. Thecontroller includes an impedance detection unit for applying animpedance detection voltage to the gas concentration sensor to detect adevice impedance of the gas concentration sensor. The controller alsoincludes a data invalidation unit for invalidating the output of the gasconcentration sensor for a specified period of time after the impedancedetection voltage is applied to the gas concentration sensor.

The above object of the present invention is also achieved by acontroller for a gas concentration sensor that generates an outputcorrelating with the oxygen concentration in a detected gas. Thecontroller includes an impedance detection unit for applying animpedance detection voltage to the gas concentration sensor at specifiedtime intervals to detect a device impedance of the gas concentrationsensor. The controller further includes an impedance detection timeinterval setup unit for increasing the specified time intervals with anincrease in the device impedance.

Other objects and further features of the present invention will beapparent from the following detailed description when read inconjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram showing a configuration of a first embodiment of thepresent invention;

FIGS. 2A to 2E are timing diagrams illustrating an operation that isperformed in the first embodiment of the present invention;

FIG. 3 is an equivalent circuit diagram of an oxygen sensor shown inFIG. 1;

FIG. 4 shows waveforms of sensor output that is generated before andafter a voltage is applied to the oxygen sensor shown in FIG. 1;

FIG. 5 is a flowchart of a control routine executed in the firstembodiment of the present invention;

FIG. 6 illustrates the procedure to be performed in the routine shown inFIG. 5 to calculate ON time of second port;

FIG. 7 shows a relationship between device impedance Rs and a waveformof sensor output that is generated before and after a voltage is appliedto the oxygen sensor shown in FIG. 1;

FIG. 8 is a flowchart of a control routine executed in a secondembodiment of the present invention;

FIG. 9 shows a map of data invalidation count AD1 that is referred to inthe control routine shown in FIG. 8;

FIGS. 10A and 10B are timing diagrams illustrating an outline of anoperation that is performed in a third embodiment of the presentinvention;

FIG. 11 is a flowchart of a control routine executed in the thirdembodiment of the present invention;

FIG. 12 shows a typical map of the device impedance calculation intervalT1 that can be used in the third embodiment of the present invention;

FIG. 13 shows a relationship between device temperature and deviceimpedance Rs of the oxygen sensor shown in FIG. 1;

FIG. 14 is a flowchart of a control routine executed in a fourthembodiment of the present invention; and

FIG. 15 shows a map of device impedance calculation interval T1 that isreferred to in the control routine shown in FIG. 14.

BEST MODE OF CARRYING OUT THE INVENTION

Embodiments of the present invention will now be described withreference to the accompanying drawings. Like elements in the drawingsare designated by like reference numerals and will not be describedagain.

First Embodiment

[Circuit Configuration Description]

FIG. 1 is a diagram showing a configuration of a first embodiment of thepresent invention. As shown in FIG. 1, the system according to the firstembodiment includes an oxygen sensor 10 and an ECU (Electronic ControlUnit) 20. In the present embodiment, the oxygen sensor 10 is installedin the exhaust path of an internal-combustion engine to generate asensor output in accordance with the oxygen concentration in exhaustgas. More specifically, the oxygen sensor generates a sensor output thatindicates whether exhaust air-fuel ratio is rich or lean.

In FIG. 1, the oxygen sensor 10 is equivalently indicated as an elementthat includes an impedance component and an electromotive forcecomponent. In other words, the oxygen sensor 10 is an electromotivesensor that generates a voltage in accordance with the oxygenconcentration in a detected gas. In the present embodiment, the oxygensensor 10 is connected to the ECU 20 so that the OX1B terminal is on ahigh-voltage side, and that the E2 terminal is on a low-voltage side.The ECU 20 monitors the voltage generated between the OX1B terminal andE2 terminal to judge whether the exhaust air-fuel ratio is rich or lean.

The device impedance Rs of the oxygen sensor 10 has such a temperaturecharacteristic that the higher the temperature of the oxygen sensor 10,the smaller the value of the device impedance Rs. To permit the oxygensensor 10 to function normally, it is necessary to maintain the oxygensensor 10 at an active temperature. Since the temperature of the oxygensensor 10 correlates with the device impedance Rs, being able to detectthe device impedance Rs accurately is useful in order to control thetemperature to the above active temperature. Further, if the deviceimpedance Rs can be accurately detected, it is possible to perform adiagnostic check on the oxygen sensor 10 based on the detected value. Asdescribed above, it is required that the device impedance Rs of theoxygen sensor 10 be accurately detected.

To comply with the above requirements, the ECU 20 is capable ofaccurately detecting the device impedance Rs of the oxygen sensor 10.The ECU 20 for use in the present embodiment is a unit that is capableof acquiring the information about the exhaust air-fuel ratio anddetecting the device impedance Rs of the oxygen sensor 10 in accordancewith the voltage generated by the oxygen sensor 10 (the voltagedeveloped between the OX1B terminal and E2 terminal). The circuitconfiguration and functionality of the ECU 20 will now be described indetail.

The ECU 20 includes a first switching device 22. A constant voltage(input voltage) of 5 V is supplied to the first switching device 22. Thegate of the first switching device 22 communicates with a first port 24.The ECU 20 issues an ON command to the first port 24 as needed to turnON the first switching device 22.

The first switching device 22 is connected to a first sampling point 28via a second resistor 26. The first sampling point 28 is electricallyconnected to OX1B external terminal of the ECU 20 via a first resistor30 and electrically connected to the E2 external terminal of the ECU 20via a first capacitor 31.

The first sampling point 28 is connected to a first analog-to-digitalconverter (ADC1) 32 via a filter circuit having a small time constant.The filter circuit comprises two series-connected resistors 34, 36 and acapacitor 38, which is positioned between an input terminal of the firstanalog-to-digital converter 32 and a ground wire. A diode 40 isconnected between the two resistors 34, 36 to maintain the potentialsfor their joints at a voltage below 5 V for protection purposes.

The first analog-to-digital converter 32 is capable of converting ananalog signal, which is supplied to its input terminal, to a digitalsignal. The potential of the first sampling point 28 is supplied to theinput terminal of the first analog-to-digital converter 32 via theaforementioned filter circuit having a small time constant. Therefore,the first analog-to-digital converter 32 can accurately digitize andoutput the potential of the first sampling point 28 even when it variesat a high frequency. As detailed later, the ECU 20 recognizes thedigital signal generated by the first analog-to-digital converter 32 ina specified situation as the potential of the first sampling point 28,and uses it in a detection process for the device impedance Rs.

Further, a second switching device 42 is connected to the first samplingpoint 28 via a third resistor 41. The gate of the second switchingdevice 42 is connected to a second port 44. The ECU 20 issues an ONcommand to the second port 44 as needed to turn ON the second switchingdevice 42. Therefore, when the ECU 20 issues an ON command to the secondport 44, the first sampling point 28 is electrically connected to the E2external terminal via the third resistor 41.

In the ECU 20, a second sampling point 50 is formed between the firstresistor 30 and the OX1B external terminal. The second sampling point 50is connected to one end of an output detection resistor 52, which ispositioned parallel to the oxygen sensor 10. The impedance of the outputdetection resistor 52 is sufficiently greater than the device impedanceRs of the oxygen sensor 10. Therefore, if no input voltage is suppliedto the second sampling point 50 (the first switching device 22 is OFF),a voltage equivalent to the electromotive force of the oxygen sensor 10is generated at the second sampling point 50. If, on the other hand, aninput voltage is supplied to the second sampling point 50 (the firstswitching device 22 is ON), a voltage equivalent to the product of thecurrent I flowing to the oxygen sensor 10 and the device impedance Rs isgenerated at the second sampling point 50.

A second analog-to-digital converter (ADC2) 54 is connected to thesecond sampling point 50 via a filter circuit having a small timeconstant. The filter circuit comprises two series-connected resistors56, 58 and a capacitor 60, which is positioned between an input terminalof the second analog-to-digital converter 54 and a ground wire. A diode62 is connected between the two resistors 56, 58 to maintain thepotentials for their joints at a voltage below 5 V for protectionpurposes.

The second analog-to-digital converter 54 is capable of converting ananalog signal, which is supplied to its input terminal, to a digitalsignal. The input terminal of the second analog-to-digital converter 54is connected to the second sampling point 50 via the aforementionedfilter circuit having a small time constant. Therefore, the secondanalog-to-digital converter 54 can accurately digitize and output thepotential of the second sampling point 50 even when it varies at a highfrequency. As detailed later, the ECU 20 recognizes the digital signalgenerated by the second analog-to-digital converter 54 in a specifiedsituation as the potential of the second sampling point 50, and uses itin a detection process for the device impedance Rs.

Further, the second sampling point 50 is connected to a thirdanalog-to-digital converter (ADC3) 68 via a filter circuit, whichcomprises a resistor 64 and a capacitor 66. The filter circuit, which ispositioned before the third analog-to-digital converter 68, has asufficiently great time constant so that only the low-frequencycomponents of a voltage at the second sampling point 50 are allowed topass. Therefore, the third analog-to-digital converter 68 can accuratelygenerate a digital signal equivalent of a steady-state voltage at thesecond sampling point 50 without being affected by noise or the like. Asdetailed later, the ECU 20 recognizes the digital signal generated bythe third analog-to-digital converter 68 in a specified situation as theoutput signal of the oxygen sensor 10, and uses it in a process fordetecting the oxygen concentration in a detected gas.

[ECU Operation Description]

(Process for Detecting the Oxygen Concentration Information)

The ECU 20 turns OFF the first port 24 except in an attempt to detectthe device impedance Rs of the oxygen sensor 10. When the first port 24is OFF, the first switching device 22 turns OFF so that the steady-statepotential of the second sampling point 50 is equivalent to theelectromotive force of the oxygen sensor 10 (see FIG. 1). In thisinstance, the output of the third analog-to-digital converter 68 isequal to the sensor output of the oxygen sensor 10. Under such asituation, the ECU 20 detects the digital signal generated by the thirdanalog-to-digital converter 68 at specified time intervals (e.g., at 4msec intervals), and acquires the information about the oxygenconcentration in the exhaust gas in accordance with the detected signalvalue.

(Process for Calculating the Device Impedance Rs)

FIGS. 2A to 2E are timing diagrams illustrating the operation that theECU 20 performs in a mode for calculating the device impedance Rs of theoxygen sensor 10. More particularly, FIGS. 2A and 2B show waveforms ofthe status of the first port 24 and the second port 44, respectively.FIGS. 2C to 2E show waveforms indicating the changes in the potentialsthat are supplied to the input terminals of the first to thirdanalog-to-digital converters 32, 54, 68, respectively.

In the mode for calculating the device impedance Rs, the ECU 20generally turns OFF the second port 44 (see FIG. 2B). In this instance,the second switching device 42 turns OFF so that, inside the ECU 20,only the first capacitor 31 is connected parallel to a series circuitfor the first resistor 30 and the sensor device 10. The parallel circuitformed by such elements is hereinafter referred to as the “R1/Rs-C1parallel circuit”. The ECU 20 includes the output detection resistor 52,which is connected parallel to the oxygen sensor 10. However, theresistance value of the output detection resistor 52 (e.g., 1.5 MΩ) issufficiently greater than the value of the device impedance Rs of theoxygen sensor 10 (not greater than several tens of kilohms). It istherefore assumed that the existence of the output detection resistor 52is ignorable.

When the calculation of the device impedance Rs is demanded, the ECU 20turns ON the first port 24 with the second port 44 left OFF (see FIG.2A). When the first port 24 turns ON, the first switching device 22turns ON so that an input voltage of 5 V begins to be applied to thesecond resistor 26. This voltage passes through the second resistor 26,works on the first sampling point 28, and is applied to the R1/Rs-C1parallel circuit.

When the above voltage begins to be applied to the first sampling point28, the potential VS1 at that point subsequently rises in accordancewith the time constant τ and finally converges to a value that isdetermined according to the ratio between the resistance value R2 of thesecond resistor 26 and the combined resistance value R1 +Rs of the firstresistor 30 and oxygen sensor 10. In this instance, the resultingconvergence value VS1 and the time constant τ are respectively expressedby Equations (1) and (2) shown below.VS1=5(R1+Rs)/(R2+R1+Rs)  Equation (1)τ=C1/{1/(Rs+R1)+1/R2}  Equation (2)

In the circuit shown in FIG. 1, the potential VS1 at the first samplingpoint 28 is supplied to the first analog-to-digital converter 32.Therefore, the output of the first analog-to-digital converter 32 variesin the same manner as the value VS1, which is indicated by Equations (1)and (2). The waveform shown in FIG. 2C shows that the output of thefirst analog-to-digital converter 32 varies in such a manner after thefirst port 24 is turned ON.

In a process in which the potential VS1 at the first sampling point 28varies as described above, the current I flows to the oxygen sensor 10as indicated by the following equation:I=VS1/(R1+Rs)  Equation (3)

In this instance, the potential VS2 at the second sampling point 50 canbe expressed as follows using the current I and device impedance Rs:VS2=Rs·I  Equation (4)

Since the potential VS1 at the first sampling point 28 varies accordingto the time constant τ, the current I, which satisfies Equation (3), andthe potential VS2 at the second sampling point 50, which satisfiesEquation (4), both vary according to the time constant τ. In the circuitshown in FIG. 1, the potential VS2 at the second sampling point 50 issupplied to the second analog-to-digital converter 54. Therefore, theoutput of the second analog-to-digital converter 54 varies in the samemanner as the value VS2, which is expressed by Equations (4) and (2).The waveform shown in FIG. 2D indicates that the output of the secondanalog-to-digital converter 54 varies in such a manner after the firstport 24 is turned ON.

The current I, which flows to the oxygen sensor 10, can be expressed asfollows using the potential VS1 at the first sampling point 28, thepotential VS2 at the second sampling point 50, and the resistance valueR1 of the first resistor 30:I=(VS1−VS2)/R1  Equation (5)

From Equations (4) and (5), the device impedance Rs can be expressed asfollows:

$\begin{matrix}\begin{matrix}{{Rs} = {{VS}\; 2\text{/}I}} \\{= {{VS}\;{2 \cdot R}\;{1/\left( {{{VS}\; 1} - {{VS}\; 2}} \right)}}}\end{matrix} & {{Equation}\mspace{20mu}(6)}\end{matrix}$

As described above, in the circuit according to the present embodiment,the device impedance Rs of the oxygen sensor 10 can be calculated fromthe potentials VS1, VS2 that are developed at the first sampling point28 and second sampling point 50 after the first port 24 is turned ON.Influence of a leak current or the like which has been existing frombefore the turning ON of the first port 24 is superposed over thepotential VS1 at the first sampling point 28 and the potential VS2 atthe second sampling point 50 of after the turning ON of the first port24. For accurate calculation of the device impedance Rs, therefore, itis preferred that the influence of the leak current or the like beeliminated.

Therefore, the ECU 20 determines the difference ΔVS1 between thepotential VS1 prevailing immediately before the first port 24 is turnedON (hereinafter referred to as “VS1 OFF”) and the potential VS1prevailing after the first port 24 is turned ON (hereinafter referred toas “VS1 ON”), determines the difference ΔVS2 between the potential VS2prevailing immediately before the first port 24 is turned ON(hereinafter referred to as “VS2 OFF”) and the potential VS2 prevailingafter the first port 24 is turned ON (hereinafter referred to as “VS2ON”), applies the determined differences to Equation (6), and calculatesthe device impedance Rs using the following equation:

$\begin{matrix}\begin{matrix}{{Rs} = {\Delta\;{VS}\;{2 \cdot R}\; 1\text{/}\left( {{\Delta\;{VS}\; 1} - {\Delta\;{VS}\; 2}} \right)}} \\{= {{\left( {{{VS}\; 2{ON}} - {{VS}\; 2{OFF}}} \right) \cdot R}\;{1/\left\{ \left( {{{VS}\; 1{ON}} -} \right. \right.}}} \\\left. {\left. {{VS}\; 1{OFF}} \right) - \left( {{{VS}\; 2{ON}} - {{VS}\; 2{OFF}}} \right)} \right\}\end{matrix} & {{Equation}\mspace{20mu}(7)}\end{matrix}$

However, if the influence of the leak current or the like isinsignificant and the value VS1 OFF is nearly equal to the value VS2OFF, the relationship expressed by Equation (7) need not always be used.In such an instance, the device impedance Rs should be calculated fromEquation (6) (while assuming that VS1 =VS1 ON and that VS2 =VS2 ON).

As described earlier, the first analog-to-digital converter 32 enablesthe ECU 20 to detect the potential of the first sampling point 28.Further, the second analog-to-digital converter 54 enables the ECU 20 todetect the potential of the second sampling point 50. Therefore, whenthe calculation of the device impedance Rs is demanded, the ECU 20performs the following calculation steps:

-   -   (i) Immediately before the first port 24 is turned ON, the ECU        20 detects the output of the first analog-to-digital converter        32 as VS1 OFF and the output of the second analog-to-digital        converter 54 as VS2 OFF.

(ii) Upon termination of the above detection sequence, the ECU 20 turnsON the first port 24.

(iii) When the period required for VS1 to reach its convergence value(e.g., 135 μsec) elapses after the first port is turned ON, the ECU 20detects the output of the first analog-to-digital converter 32 as VS1 ONand the output of the second analog-to-digital converter 54 as VS2 ON.

(iv) Upon termination of the above detection sequence, the ECU 20 turnsthe first port 24 back OFF.

(v) The ECU 20 substitutes the values VS1 OFF, VS1 ON, VS2 OFF, and VS2ON, which are detected in processing steps (i) through (iii) above, intoEquation (7) to calculate the device impedance Rs.

[Description of Problems with Calculating the Device Impedance Rs]

FIG. 3 is an equivalent circuit diagram that strictly illustrates thecharacteristics of the oxygen sensor 10. As shown in this figure, theoxygen sensor 10 has a capacitance component in addition to anelectromotive component and an impedance component. When a voltage isapplied to a circuit having such components, an electrical charge isstored in the capacitance component. Before the stored electrical chargeis released, the voltage developed across the terminals of the oxygensensor 10 is higher than the voltage generated by the electromotivecomponent even after the voltage application to the oxygen sensor 10 isstopped. In other words, the sensor output (output voltage) of theoxygen sensor 10 represents an excessive value for the oxygenconcentration in the exhaust gas until the electrical charge stored inthe capacitance component is released.

FIG. 4 shows waveforms of sensor output that is generated before andafter a voltage is applied to the oxygen sensor 10 for the purpose ofcalculating the device impedance Rs. The waveform indicated by a brokenline is a sensor output waveform that is obtained when the electricalcharge stored in the oxygen sensor 10 is spontaneously released afterthe first port 24 is turned OFF. The waveform indicated by a solid lineis a sensor output waveform that is obtained when the electrical chargestored in the oxygen sensor 10 is forcibly released immediately afterthe status of the first port 24 is changed from ON to OFF. In thecircuit configuration shown in FIG. 1, the electrical charge stored inthe oxygen sensor 10 can be forcibly released by turning ON the secondport 44, that is, by turning ON the second switching device 42. Morespecifically, the waveform indicated by the solid line in FIG. 4 isobtained when the second port 44 is ON for only a specified periodfollowing the instant at which the status of the first port 24 ischanged from ON to OFF.

As indicated by the broken line in FIG. 4, when the electrical chargestored in the oxygen sensor 10 is spontaneously released, the sensoroutput exceeds the output generated by the oxygen sensor 10 itself forsome time (for a period of three samplings in the example shown in FIG.4) after the voltage application to the oxygen sensor 10 is stopped.Since such an excessive sensor output (output marked X) does notcorrespond to the oxygen concentration in the exhaust gas, it should notbe used as a basis for acquiring the information about oxygenconcentration.

On the other hand, when the electrical charge stored in the oxygensensor 10 is forcibly released, that is, when the second port 44 is ONfor a specified period only, the sensor output downs to the groundpotential, then converges to the inherent output immediately after thevoltage application to the oxygen sensor 10 is stopped, as indicated bythe solid line in FIG. 4. In this instance, the sensor output of theoxygen sensor 10 properly corresponds to the oxygen concentration in theexhaust gas immediately after the voltage application to the oxygensensor 10 is stopped. Therefore, the ECU 20 changes the status of thefirst port 24 from ON to OFF in order to calculate the device impedanceRs, then forcibly releases the electrical charge stored in the oxygensensor 10 by keeping the second port 44 ON for a specified period only.

FIGS. 2A and 2B indicate that the second port 44 turns ON at the momentthe first port 24 turns OFF, and that the second port 44 turns OFF in aspecified period of time. In the present embodiment, the ECU 20 acquiresthe output of the oxygen sensor 10 that is supplied to the thirdanalog-to-digital converter 68, at 4 msec sampling intervals. FIGS. 2Cto 2E indicate that all the input voltages to the first to thirdanalog-to-digital converters 32, 54, 68 converge to the inherent outputgenerated by the oxygen sensor 10 itself within a 4 msec period when thesecond port is turned ON as described above after the voltageapplication to the oxygen sensor 10 is started. When the input voltagefor the third analog-to-digital converter 68 varies in this manner, allthe sensor outputs sampled by the ECU 20 properly correspond to theoxygen concentration in the exhaust gas. As a result, the systemaccording to the present embodiment is always capable of correctlydetecting the information about the oxygen concentration in the exhaustgas without being affected by the voltage application for calculatingthe device impedance Rs after the calculation process for the deviceimpedance Rs terminates.

FIG. 5 is a flowchart illustrating how the ECU 20 executes a controlroutine in order to implement the above functionality. It is assumedthat the routine shown in FIG. 5 is an interrupt routine that is startedat time intervals (for instance, of 4 msec) at which the output of theoxygen sensor 10 should be sampled.

The routine shown in FIG. 5 first increments the TCOUNT counter (step100). The TCOUNT counter is cleared each time the calculation processfor the device impedance Rs is performed, and used to count the timeelapsed after the clearing.

Next, the count reached by the TCOUNT counter is checked to determinewhether it coincides with the device impedance calculation interval T1(step 101). If it is found in step 101 that TCOUNT is less than T1, thecurrent processing cycle comes to an end after the thirdanalog-to-digital converter 68 acquires the output of the oxygen sensor10 (AD acquisition) (step 102). According to the above process, theoutput of the oxygen sensor 10 is acquired at sampling time intervals asthe output representing the information about the oxygen concentrationin the exhaust gas until TCOUNT reaches to T1 after the calculationprocess for the device impedance Rs is terminated.

If it is found in step 101 that TCOUNT is greater than or equal to T1,the calculation process for the device impedance Rs is performed at thistime point and the TCOUNT counter is cleared to zero (step 104). Morespecifically, processing steps (i) through (v), which are describedearlier, are performed in the calculation process for the deviceimpedance Rs. That is, a voltage is applied to the oxygen sensor 10 withthe first port turned ON, and then a process is performed to calculatethe device impedance Rs in accordance with the resulting changes in theVS1 and VS2 values.

When the first port 24 turns OFF upon termination of the calculationprocess for the device impedance Rs, the ON time for the second port 44is calculated (step 106). As described earlier, the ECU 20 turns ON thesecond port 44 to forcibly release the electrical charge stored in theoxygen sensor 10 after the device impedance Rs is calculated. In thisinstance, it is preferred that the second port 44 be turned OFFimmediately after termination of forced release of electrical charge. Instep 106, therefore, the ON time is set as needed for forced release ofelectrical charge.

FIG. 6 illustrates the procedure to be performed in step 106 to set theON time for the second port 44. The left-hand drawing in FIG. 6 is a mapthat defines the relationship between the device impedance Rs and the ONtime for the second port 44. The right-hand drawing in FIG. 6 is a mapthat defines the relationship between the sensor output generated by theelectromotive force of the oxygen sensor 10 and the ON time for thesecond port 44. In step 106, the ON time values determined by these twomaps are multiplied together, and the resulting time is set as the ONtime for the second port 44.

According to the maps shown in FIG. 6, the greater the device impedanceRs, the longer the ON time setting for the second port 44. When thefirst port 24 turns ON to apply a voltage to the oxygen sensor 10, theresulting potential increases with an increase in the device impedanceRs. The higher the resulting potential, the larger the amount ofelectrical charge stored in the oxygen sensor 10. Therefore, the timerequired for forcibly releasing the electrical charge after the firstport 24 is turned OFF increases with an increase in the device impedanceRs. When processing step 106 is performed, the ON time for the secondport can be set to meet such requirements.

According to the maps shown in FIG. 6, the higher the sensor outputgenerated by the oxygen sensor 10, the shorter the ON time setting forthe second port 44. After the voltage application to the oxygen sensor10 is stopped with the first port 24 turned OFF, the smaller thedifference between the normal output and the output generated uponvoltage application, the more quickly the sensor output of the oxygensensor 10 reverts to the normal output. More specifically, the presentembodiment causes the sensor output to quickly revert to the normalvalue after the first port 24 is turned OFF if the normal sensor outputvoltage of the oxygen sensor 10 is high. It is therefore preferred thatthe ON time setting for the second port 44 decrease with an increase inthe normal sensor output of the oxygen sensor 10. When processing step106 is performed, the ON time for the second port can be set to meetsuch preferences.

In the routine shown in FIG. 5, the ON process for the second port 44 isthen performed (step 108). More specifically, step 108 is performed tokeep the second port 440N for a period that is set in step 106. Whenstep 108 is completed to perform the process, the sensor output of theoxygen sensor 10 reverts to the normal output, that is, the outputcorrectly representing the oxygen concentration in the exhaust gas,immediately after the first port 24 is turned OFF.

When the sampling timing arrives again after termination of processingstep 108, it is determined that the condition imposed in step 101 is notmet at this time; therefore, processing step 102 is performed again. Thesensor output of the oxygen sensor 10 has already reverted to the normaloutput level. Thus, the ECU 20 can correctly detect the sensor outputcorresponding to the oxygen concentration in the exhaust gas from thesampling timing arriving immediately after the device impedance Rs iscalculated.

As described above, the routine shown in FIG. 5 is capable of forciblyreleasing the electrical charge stored in the oxygen sensor 10 in theprocess for calculating the device impedance Rs by turning ON the secondport 44. Further, this routine can correctly detect the informationabout the oxygen concentration in the exhaust gas on each sampling cyclewithout being affected by the voltage application for calculating thedevice impedance Rs. As a result, the apparatus according to the presentembodiment is capable of implementing the function for correctlydetecting the device impedance Rs of the oxygen sensor 10 as well as thefunction for accurately detecting the information about the oxygenconcentration in the exhaust gas.

In the first embodiment described above, a positive voltage is appliedto a positive terminal of the oxygen sensor 10 at the time ofcalculating the device impedance Rs, and then the potential of thepositive terminal of the oxygen sensor 10 is lowered (grounded) toquickly restore the sensor output to its normal level. However, there isan alternative method for quickly restoring the sensor output to normal.More specifically, the alternative is to apply a negative voltage to anegative terminal of the oxygen sensor 10 at the time of calculating thedevice impedance Rs, and then to raise the potential of the oxygensensor's negative terminal for quick restoration of the sensor output.

In the first embodiment described above, the voltage applied to theoxygen sensor 10 is reduced to zero with a view toward quickly restoringthe sensor output to normal after voltage application to the oxygen 10.Alternatively, however, the voltage to be applied to the oxygen sensor10 for quick restoration of the sensor output may be the sensor outputvoltage that is usually generated by the oxygen sensor 10 or may be avoltage that shifts from the usually generated output toward an oppositedirection against a direction of the voltage applied to calculate thedevice impedance Rs.

In the first embodiment described above, the ECU 20 controls only theoxygen sensor (which generates an output that varies depending onwhether the exhaust air-fuel ratio is rich or lean). However, thepresent invention is not limited to the control of the oxygen sensor.The present invention may also be applied to an air-fuel ratio sensor,which generates an output representing the oxygen concentration(air-fuel ratio) in a detected gas.

Second Embodiment

A second embodiment of the present invention will now be described withreference to FIGS. 7 through 9. The system according to the secondembodiment can be implemented by using the configuration shown in FIG. 1and causing the ECU 20 to execute a routine shown in FIG. 8, which willbe described later, instead of the routine shown in FIG. 5.

In the first embodiment described earlier, a voltage is applied to theoxygen sensor 10 for the purpose of calculating the device impedance Rs,and then the electrical charge stored in the oxygen sensor 10 isforcibly released so as not to acquire the sensor output thatincorrectly corresponds to the oxygen concentration in the exhaust gas.On the other hand, the system according to the second embodiment doesnot acquire the sensor output as a proper value while the sensor outputis affected by voltage application to the oxygen sensor 10. In thismanner, the second embodiment does not acquire the sensor output when itcontains an error.

FIG. 7 shows sensor output changes that occur before and after thevoltage for calculating the device impedance Rs is applied to the oxygensensor 10. The broken line in FIG. 7 represents a waveform that isobtained when the device impedance Rs is large and the sensor output issignificantly increased upon voltage application. The solid line in FIG.7 represents a waveform that is obtained when the device impedance Rs issmall and the sensor output is insignificantly increased upon voltageapplication.

When the oxygen sensor 10 has a large device impedance Rs as shown inFIG. 7 (as indicated by the broken line), it takes a relatively longtime for the sensor output to decrease to its inherent value, that is, avalue corresponding to the oxygen concentration in the exhaust gas,after the sensor output is increased upon voltage application. Further,if the device impedance Rs of the oxygen sensor 10 is small, the sensoroutput reverts to its inherent value within a relatively short period oftime after voltage application. Therefore, if the sensor output issampled at fixed time intervals, the number of times the sensor outputcontaining an error is acquired, that is, the number of times the datato be invalidated is acquired in the present embodiment, is larger whenthe device impedance Rs is large than when the value Rs is small. In thepresent embodiment, therefore, the ECU 20 applies a voltage to theoxygen sensor 10 for the purpose of calculating the device impedance Rs,and then invalidates the sampled data (sensor output) as the datacontaining an error by a number of times that accords to the calculateddevice impedance Rs.

FIG. 8 is a flowchart illustrating a control routine that the ECU 20executes to implement the above functionality in accordance with thepresent embodiment. Like steps in FIGS. 5 and 8 are designated by likereference numerals and will be briefly described or will not bedescribed again.

In the routine shown in FIG. 8, if it is found in step 101 that thecalculation interval T1 for the device impedance Rs has elapsed (TCOUNTis greater than or equal to T1), following the processing step 104(which calculates the device impedance Rs and clears the TCOUNTcounter), data invalidation number of times AD1 is calculated (step110). FIG. 9 shows a typical map that defines the relationship betweenthe data invalidation number of times AD1 and the device impedance Rs.The ECU 20 stores a map, which looks like the one shown in FIG. 9. Step110 is performed to reference the map and calculate the datainvalidation number of times that corresponds to the device impedance Rscalculated in step 104. According to the map shown in FIG. 9, the largerthe device impedance Rs is, thus the more likely the effect of thevoltage application is remained in the sensor output, the higher thedata invalidation number of times AD1 is set.

Next, the routine shown in FIG. 8 performs a process for clearing theADCOUNT counter (step 112). The ADCOUNT counter counts the number oftimes the sensor output is sampled after the calculation process for thedevice impedance Rs. Upon completion of processing step 112, the ECU 20terminates the current processing cycle.

If it is found in step 101 that TCOUNT is less than T1, after samplingthe sensor output in step 102, the routine shown in FIG. 8 incrementsthe ADCOUNT counter (step 114). According to the above incrementprocess, it is possible to sample the sensor output as well as toincrement the ADCOUNT counter upon every sampling interval (upon everyroutine startup) until elapse of the device impedance calculationinterval T1 is determined.

Next, the routine shown in FIG. 8 judges whether the count reached bythe ADCOUNT counter is not greater than the data invalidation count AD1(step 116). If it is judged that ADCOUNT is less than or equal to AD1,the sensor output (data) sampled in step 102 is invalidated (step 118).When it is found that ADCOUNT is greater than AD1, processing step 118is skipped so that the current processing cycle terminates withoutinvalidating the acquired data.

As described above, the routine shown in FIG. 8 can invalidate thesampled sensor output by a specified data invalidation number of timesAD1 after a voltage is applied to the oxygen sensor 10 for the purposeof calculating the device impedance Rs. The data invalidation number oftimes AD1 can be set in accordance with the device impedance Rs so thatit corresponds to a period during which an error will be superposed overthe sensor output. Therefore, the system according to the presentembodiment is capable of implementing the function for calculating thedevice impedance Rs of the oxygen sensor 10 as well as the function forconstantly detecting the information about the oxygen concentration inthe exhaust gas with high accuracy.

In the second embodiment described above, the data invalidation numberof times AD1 is set in accordance with the device impedance Rs of theoxygen sensor 10. However, there is an alternative method for setup. ForAD1 setup purposes, the normal sensor output value of the oxygen sensor10 may alternatively be taken into account as is the case with the firstembodiment. More specifically, the smaller the difference between thenormal sensor output value of the oxygen sensor 10 and the sensor outputvalue attained upon voltage application, thus the more likely the timerequired for data convergence is to be short, the lower the datainvalidation number of times can be set.

In the second embodiment described above, the ECU 20 controls only theoxygen sensor (which generates an output that varies depending onwhether the exhaust air-fuel ratio is rich or lean). However, thepresent invention is not limited to the control of the oxygen sensor.The present invention may also be applied to an air-fuel ratio sensor,which generates an output representing the oxygen concentration(air-fuel ratio) in a detected gas.

Third Embodiment

A third embodiment of the present invention will now be described withreference to FIGS. 10A, 10B and 11. The system according to the thirdembodiment can be implemented by using the configuration shown in FIG. 1and causing the ECU 20 to execute a routine shown in FIG. 11, which willbe described later, instead of the routine shown in FIG. 5.

In the present embodiment, the ECU 20 performs a process for calculatingthe device impedance Rs each time the device impedance calculationinterval T1 elapses, as is the case with the first embodiment. When thedevice impedance Rs is to be calculated, a voltage is applied to theoxygen sensor 10 as described earlier. The output of the oxygen sensor10 does not accurately correspond to the oxygen concentration in theexhaust gas until the influence of voltage application disappears.Therefore, the information about the oxygen concentration in the exhaustgas can be accurately detected in accordance with the sensor output onlyduring the time interval between the instant at which the effect of thevoltage application in the sensor output disappears and the instant atwhich the device impedance calculation interval T1 elapses.

The time required for the influence of voltage application upon thesensor output of the oxygen sensor 10 to disappear increases with anincrease in the device impedance Rs. Therefore, if the device impedancecalculation interval T1 is fixed, although a sufficient period forcorrectly detecting the information about the oxygen concentration inthe exhaust gas can be acquired as far as the device impedance Rs islow, such a period cannot be acquired in a situation where the deviceimpedance Rs is high.

FIGS. 10A and 10B are timing diagrams illustrating the operations thatthe present embodiment performs to handle the above situation. Waveformshown in FIG. 10A represents the sensor output that the oxygen sensor 10generates when the device impedance Rs is high. Waveform shown in FIG.10B represents the sensor output that the oxygen sensor 10 generateswhen the device impedance Rs is low. In FIGS. 10A and 10B, the periodshown with T1 designates the above-mentioned device impedancecalculation interval. The period shown with T2 designates a periodduring which sensor output sampling is prohibited.

As indicated in FIG. 10A, the system according to the present embodimentsets a long device impedance calculation interval T1 and a long samplingprohibition period T2 if the device impedance Rs is high. If, on theother hand, the device impedance Rs is low, the system sets a shortdevice impedance calculation interval T1 and a short samplingprohibition period T2 as indicated in FIG. 10B. When the values T1 andT2 are set in this manner, an adequate period can be obtained for normalsensor output acquisition without regard to the length of the periodthat is required for the influence of voltage application forcalculating the device impedance Rs upon the sensor output to disappear.As a result, the system according to the present embodiment can properlydetect the information about the oxygen concentration in the exhaust gasat all times without regard to the device impedance Rs of the oxygensensor 10.

FIG. 11 is a flowchart illustrating a control routine that the ECU 20executes to implement the above functionality. Like steps in FIG. 11 andFIG. 5 or 8 are designated by like reference numerals and will bebriefly described or will not be described again.

The routine shown in FIG. 11 first increments the TCOUNT counter andsets the device impedance calculation interval T1 and the samplingprohibition period T2 (step 120). In the present embodiment, the ECU 20stores a map for defining the value T1 in relation to the deviceimpedance Rs and a map for defining the value T2. In step 120, thesemaps are referenced to set the values T1 and T2.

Upon termination of processing step 120, processing step 100 isperformed to judge whether TCOUNT is greater than or equal to T1. If itis found that TCOUNT is greater than or equal to T1, step 104 isperformed to calculate the device impedance Rs and clear the TCOUNTcounter, and then the current processing cycle comes to an end. If, onthe other hand, it is found that TCOUNT is less than T1, step 122 isperformed to judge whether TCOUNT is greater than or equal to T2.

If it is found that TCOUNT is not greater than or equal to T2, it can bejudged that the sampling prohibition period T2 has not yet elapsed aftercalculation of the device impedance Rs. In this instance, the routineshown in FIG. 11 terminates the current processing cycle thereafterwithout sampling any sensor output. If, on the other hand, it is foundthat TCOUNT is greater than or equal to T2, it can be judged that thesampling prohibition period T2 has already elapsed. In this instance,step 102 is performed thereafter to sample the sensor output, and thenthe current processing cycle comes to an end. According to the processdescribed above, the sensor output can be acquired at every samplingtime interval only after the end of the sampling prohibition period T2and before the end of the device impedance calculation interval T1.

The T1-related map and T2-related map for use in step 120 are both setso that the higher the device impedance Rs, the greater the value T1 orT2. More specifically, the map concerning the device impedancecalculation interval T1 defines the relationship between the values Rsand T1 so that a time period in which the oxygen sensor 10 can generatenormal sensor output is always sufficiently acquired without regard tothe value of the device impedance Rs. Further, the map concerning thesampling prohibition period T2 defines the relationship between thevalue T2 and the device impedance Rs so that the sampling prohibitionperiod T2 is equal to a period during which the sensor output of theoxygen sensor 10 remains affected by voltage application. Therefore, theroutine shown in FIG. 11 can always provide a sufficient period fornormal output generation by the oxygen sensor 10 without regard to thevalue of the device impedance Rs, and sample correct sensor outputsonly. Therefore, the system according to the present embodiment iscapable of implementing the function for accurately detecting the deviceimpedance Rs as well as the function for accurately detecting theinformation about the oxygen concentration in the exhaust gas.

In the third embodiment described above, the device impedancecalculation interval T1 and the sampling prohibition period T2 are setin accordance with the device impedance Rs. However, there is analternative method for such setup. Setup may alternatively be performedwhile considering the normal sensor output value of the oxygen sensor10, as is the case with the first embodiment. More specifically, thesmaller the difference between the normal sensor output value of theoxygen sensor 10 and the sensor output value attained upon voltageapplication, i.e., the more likely the time required for dataconvergence is to be short, the lower the T1 and T2 can be set.

In the third embodiment described above, the ECU 20 controls only theoxygen sensor (which generates an output that varies depending onwhether the exhaust air-fuel ratio is rich or lean). However, thepresent invention is not limited to the control of the oxygen sensor.The present invention may also be applied to an air-fuel ratio sensor,which generates an output representing the oxygen concentration(air-fuel ratio) in a detected gas.

Fourth Embodiment

A fourth embodiment of the present invention will now be described withreference to FIGS. 12 through 15. The system according to the fourthembodiment can be implemented by using the apparatus according to thethird embodiment and causing the ECU 20 to execute a routine shown inFIG. 14, which will be described later, instead of the routine shown inFIG. 11.

As described earlier, the apparatus according to the third embodimentincreases the device impedance calculation interval T1 with an increasein the device impedance Rs. FIG. 12 shows a typical map of the deviceimpedance calculation interval T1 that can be used with the apparatusaccording to the third embodiment (see step 120 in FIG. 11). Accordingto this map, in a region where the device impedance Rs is between thehigh convergence value RsH and the low convergence value RsL, the deviceimpedance calculation interval T1 is determined so that it is linear inrelation to the device impedance Rs. In a region where the deviceimpedance Rs is above the high convergence value RsH or below the lowconvergence value RsL, however, the resulting determined deviceimpedance calculation interval T1 coincides with a specified maximumvalue T1 max or minimum value T1 min. According to such a map, theintervals at which the voltage for detecting the device impedance Rs isapplied to the oxygen sensor 10 increase with an increase in the deviceimpedance Rs and decrease with a decrease in the device impedance Rs.

FIG. 13 illustrates the relationship between the device temperature anddevice impedance Rs of the oxygen sensor 10. As indicated in thisfigure, the device impedance Rs decreases with an increase in the devicetemperature of the oxygen sensor. When the voltage for device impedancedetection is applied to the oxygen sensor 10, the current I flowing tothe oxygen sensor 10 increases with a decrease in the device impedanceRs. Therefore, the current I increases with an increase in the devicetemperature of the oxygen sensor 10.

According to the map shown in FIG. 12, the device impedance calculationinterval T1 is set to the minimum value when the device impedance Rs isbelow the low convergence value RsL, that is, when a large current Iflows upon voltage application. In such an instance, since the deviceimpedance Rs is frequently detected, it becomes that a large current Ifrequently flows through the oxygen sensor 10. The larger the current Iflowing through the oxygen sensor 10 is and the longer the period oftime during which the current I flows, the greater the damage caused tothe oxygen sensor 10 will be. Therefore, if the device impedancecalculation interval T1 is determined in accordance with the map shownin FIG. 12, it is likely that the oxygen sensor 10 will be significantlydamaged after the device temperature is adequately raised. Under thesecircumstances, the present embodiment employs a long device impedancecalculation interval T1 to decrease the frequency of voltage applicationto the oxygen sensor 10 in a region where the device impedance Rs issufficiently low.

FIG. 14 is a flowchart illustrating a control routine that the ECU 20according to the present embodiment performs in order to implement theabove functionality. The routine shown in FIG. 14 is the same as theroutine shown in FIG. 11 except that step 120 is replaced by step 130.Like steps in FIG. 14 and FIG. 11 are designated by like referencenumerals and will be briefly described or will not be described again.

In the routine shown in FIG. 14, step 130 is performed to a) incrementthe TCOUNT counter, b) set the device impedance calculation interval T1,and c) set the sampling prohibition period T2. Processes a) and c) areperformed by the same method as in the third embodiment (see step 120 inFIG. 11). Process b) is performed to set the device impedancecalculation interval T1 by referencing the map shown in FIG. 15.

The FIG. 15 shows a typical map that the ECU 20 stores in order to setthe device impedance calculation interval T1. A specified thresholdvalue RsTH, which is smaller than the low convergence value RsL, is seton the horizontal axis of the map shown in FIG. 15. Within a regionwhere the device impedance Rs is above the threshold value RsTH, thismap is designed in the same manner as the map shown in FIG. 12 is.Within a region where the device impedance Rs is below the thresholdvalue RsTH, the map shown in FIG. 15 is designed so that the deviceimpedance calculation interval T1 promptly reaches the maximum value T1max when the sensor impedance Rs decreases.

The threshold value RsTH shown in FIG. 15 is defined as the smallestdevice impedance Rs that does not cause any undue damage to the oxygensensor 10 when the device impedance calculation interval T1 is set tothe minimum value T1 min. In other words, the map shown in FIG. 15 setsthe device impedance calculation interval T1 to the minimum value T1 minwhen the device impedance Rs of the oxygen sensor 10 is RsTH. In thisinstance, the voltage for device impedance detection is repeatedlyapplied to the oxygen sensor 10 at intervals of the minimum value T1min. Upon each voltage application, the current I (=V/RsTH) obtained bydividing the applied voltage V by the value RsTH flows to the oxygensensor 10. The threshold value RsTH represents the device impedance Rsfor generating the largest current I that can repeatedly flow atintervals of T1 min without causing any undue damage to the oxygensensor 10.

The routine shown in FIG. 14 repeatedly performs a process for detectingthe device impedance Rs at device impedance calculation intervals T1that is set in accordance with the map shown in FIG. 15. In thisinstance, the damage caused to the oxygen sensor 10 upon voltageapplication is maximized when the device impedance Rs coincides with thethreshold value RsTH, due to the relationship between the voltageapplication intervals (T1) and the current I generated upon the voltageapplication. As described earlier, the threshold value RsTH is set sothat the oxygen sensor 10 does not receive any undue damage in such aninstance. In the present embodiment, therefore, a repeated execution ofthe process for detecting the device impedance Rs will not unduly damagethe oxygen sensor 10 without regard to the value of the device impedanceRs.

As described above, the apparatus according to the present embodimentcan protect the oxygen sensor 10 from undue damage by decreasing thefrequency of device impedance detection within a region where the deviceimpedance Rs of the oxygen sensor 10 is sufficiently low. As a result,the apparatus according to the present embodiment adequately preventsthe oxygen sensor 10 from deteriorating while providing the sameadvantages as the apparatus according to the third embodiment.

The present invention, which is configured as described above, providesthe following advantages.

According to a first aspect of the present invention, the gasconcentration sensor's output can converge to the voltage generated bythe gas concentration sensor itself, that is, the output correspondingto the exhaust air-fuel ratio immediately after the impedance detectionvoltage is applied to the gas concentration sensor. Therefore, thepresent invention can implement the function for detecting the deviceimpedance and the function for accurately detecting the informationabout the exhaust air-fuel ratio.

According to a second aspect of the present invention, the greater thedevice impedance of the gas concentration sensor is, thus the longer theperiod of time for the influence of the impedance detection voltage todisappear, the longer the period (specified period) of voltageapplication for canceling the influence can be. Therefore, the presentinvention can efficiently negate the influence of the impedancedetection voltage within a short period of time.

According to a third aspect of the present invention, the smaller thedifference between the voltage generated by the gas concentration sensoritself and the impedance detection voltage is, thus the influence of theimpedance detection voltage is more likely to disappear in a short time,the shorter the period (specified period) of voltage application forcanceling the influence can be. Therefore, the present invention canefficiently negate the influence of the impedance detection voltagewithin a short period of time.

According to a fourth aspect of the present invention, the gasconcentration sensor's output can be invalidated during a specifiedperiod of time during which the gas concentration sensor's output isaffected by the impedance detection voltage. Therefore, the presentinvention can implement the function for detecting the device impedanceand the function for accurately detecting the information about theexhaust air-fuel ratio.

According to a fifth aspect of the present invention, the greater thedevice impedance of the gas concentration sensor is, thus the longer theperiod of time during which the influence of the impedance detectionvoltage remains, the longer the data invalidation period (specifiedperiod) can be. Therefore, the present invention can effectively avoiderroneous detection of the exhaust air-fuel ratio, which is based on thegas concentration sensor's output.

According to a sixth aspect of the present invention, the greater thedevice impedance of the gas concentration sensor is, the longer the timeintervals (specified time intervals) at which the impedance detectionvoltage is applied can be. Without regard to the magnitude of the deviceimpedance, therefore, the present invention can properly provide aperiod during which the gas concentration sensor's output correctlycorresponds to the exhaust air-fuel ratio.

According to a seventh aspect of the present invention, the outputacquisition period can begin at the end of a period (specified period)during which the gas concentration sensor's output is affected by theimpedance detection voltage. Further, the greater the device impedanceis, thus the longer the period of time during which the influence of theimpedance detection voltage remains, the longer the above-mentionedspecified period can be. Without regard to the magnitude of the deviceimpedance, therefore, the present invention can recognize a periodduring which the gas concentration sensor's output correctly correspondsto the exhaust air-fuel ratio as an output acquisition period.

According to an eighth aspect of the present invention, the timeintervals (specified intervals) at which the impedance detection voltageis applied can be longer in a situation where the device impedance isbelow a predefined threshold value than in a situation where the deviceimpedance coincides with the predefined threshold value. In other words,in a situation where a large current flows upon impedance detectionbecause of low device impedance, the present invention can decrease thefrequency of device impedance detection. Therefore, the presentinvention effectively prevents the gas concentration sensor from beingexcessively damaged in a situation where the device impedance is low.

Further, the present invention is not limited to these embodiments, butvariations and modifications may be made without departing from thescope of the present invention. The entire disclosure of Japanese PatentApplication No. 2003-285183 filed on Aug. 1, 2003 includingspecification, claims, drawings and summary are incorporated herein byreference in its entirety.

1. A controller for a gas concentration sensor that generates an outputcorrelating with an oxygen concentration in a detected gas, saidcontroller comprising: impedance detection means for applying animpedance detection voltage to said gas concentration sensor to detect adevice impedance of said gas concentration sensor; reverse voltageapplication means for applying a voltage as generated by said gasconcentration sensor itself or a voltage that shifts from said samevoltage toward an opposite direction against a direction of saidimpedance detection voltage to said gas concentration sensor for aspecified period of time after said impedance detection voltage isapplied to said gas concentration sensor; and reverse voltageapplication period setup means for increasing said specified period oftime with an increase in said device impedance.
 2. The controller for agas concentration sensor according to claim 1, further comprisingreverse voltage application period setup means for decreasing saidspecified period of time with a decrease in a difference between saidimpedance detection voltage and the voltage generated by said gasconcentration sensor itself.